package com.athuahua.spzx.entity.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @TableName category
 */
@TableName(value ="category")
@Data
public class CategoryVo implements Serializable {
    private Long id;

    private String name;

    private String imageUrl;

    private Long parentId;

    private Integer status;

    private Integer orderNum;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private Integer isDeleted;

    private static final long serialVersionUID = 1L;

    //没有的字段，用于前段展示
    //是否存在子节点
    private Boolean hasChildren;

    //子节点List集合
    private List<CategoryVo> children;
}